<template>
	<h1>
		登录页面
	</h1>
	<button @click="loginHandler">登录</button>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { mapActions } from "vuex";
import webviewJavascriptBridge from '@/utils/hybrid'

export default defineComponent({
	methods: {
		// ...mapActions(['login', 'logout']),
		async loginHandler() {
			webviewJavascriptBridge.login(null, (data, cb) => {
				console.log(data)
			})
			// await this.login()
			// this.$router.go(-1)
		}
	}
})
</script>

<style scoped>

</style>
